<?php
class AuBeCreate extends AuBehavior{
	protected $_ar;
	
	public function init(){
		$this->_ar = new AuctionBaseDatas();
	}
	
	public function ar(){
		return $this->_ar;
	}
	
	public function run(){
		$this->ar()->attributes = $this->getPrototype()->getAttributes();		
		$this->ar()->save();
		//var_dump($this->getPrototype()->live());
	}	
	
	public function getErrors(){
		return $this->ar()->getErrors();
	}
}